//
// Created by Administrator on 2024/7/6.
//pass

#include <iostream>
#include <vector>
using namespace std;

int main()
{
    string a="5123",b="9129";
    a="11",b="88";
//    a="11",b="99";
    cin>>a>>b;
    if (a=="0")
    {
        cout<<b;
        return 0;
    }
    else if(b=="0")
    {
        cout<<a;
        return 0;
    }
    // 保证a的长度>=b的长度
    if (a.size()<b.size())
        swap(a,b);
    int alen=a.size(),blen=b.size();
    while(blen<alen)
    {
        b="0"+b;
        blen=b.size();
    }
    vector<int> ans;
    for (int i = 0; i < alen ; ++i)
    {
        ans.push_back(a[i]-'0'+b[i]-'0');
    }
    for (int i = alen-1; i >= 1; --i)
    {
        if(ans[i]>9)
        {
            ans[i]-=10;
            ++ans[i-1];
        }
    }
    if (ans[0]>9)
    {
        ans[0]-=10;
        cout<<'1';
    }
    for (int j = 0; j < alen; ++j)
    {
        cout<<ans[j];
    }
    return 0;
}